package com.qfmy.model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.common
 * @date 2025/11/26
 * @description 登入日志
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuppressWarnings("all")
public class LoginLog {

    @Schema(description = "日志ID")
    private Integer id;

    @Schema(description = "操作的名称")
    private String operateName;

    @Schema(description = "操作的用户的手机号")
    private String phone;

    @Schema(description = "操作时间，默认为当前时间戳")
    private Date operateTime;

    @Schema(description = "操作的结果，0表示失败，1表示成功")
    private Boolean operateResult;

    @Schema(description = "失败的原因，仅在操作失败时填写")
    private String operateFailReason;

    @Schema(description = "执行操作所花费的时间，单位为毫秒")
    private Long time;

}
